package com.yeyaomai.dksns.flowis.dao;

import org.springframework.data.mongodb.core.mapreduce.GroupByResults;

import com.yeyaomai.dksns.flowis.domain.Engine;

/**
 * 搜索引擎Dao层接口
 * @author sun_shan
 * 
 */
public interface EngineDao {

	void insertEngine(Engine engine);

	Engine getEngineById(Integer id);

	GroupByResults<Engine> findEngineByEngineNameAndTimeBetween(String from,String to);
	
	long countSearchTimeByCreateTime(String createTime);
	
	long countSearchTimeByEngineNameAndCreateTime(String engineName,String createTime);
	
}
